<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>18_数组-es5-新增方法-every</title>
    </head>
    <body>
        <script>
            // 所有的元素都要满足条件之后 才会返回true
            // 否则返回false

            var arr = [60,70,50,90,100];

            var result = arr.every(function(item,index,arr){
                console.log(item);
                return item >= 60;
            });

            console.log(result);
        </script>
    </body>
</html>